import request from '@/utils/request'
interface querParams {
  deptId?: string | number | null
  userName?: string
  status?: string | null
  startDate?: string
  endDate?: string
  moduleIds?: any
  titles?: any
  pageNum?: number
  pageSize?: number
}
export interface ListData {
  list: any[]
  pageSize: number
  total: number
  pageNum: number
}

// 获取日志操作模块信息
export const getModule = async () => {
  return await request.get('/system/operlog/getModule')
}
// 数据列表分页查询
export const loadList = async (data: querParams) => {
  return await request.post<ListData>('/system/operlog/page', {
    data
  })
}
